package com.seed.core.column;

import com.seed.core.enumeration.SqlOp;

import java.util.HashMap;
import java.util.Map;

public class YesnoColumn extends Column {
    private String defVal; //COLUMN_DEF 默认值
    private final Map<String, String> options;

    @Override
    public SqlOp getDefaultOp() {
        return SqlOp.eq;
    }

    public YesnoColumn() {
        this.options = new HashMap<>();
        this.options.put("yes", "是");
        this.options.put("no", "否");
    }

    public String getDefVal() {
        return defVal;
    }

    public void setDefVal(String defVal) {
        this.defVal = defVal;
    }

    public Map<String, String> getOptions() {
        return options;
    }

    @Override
    public Column copy() {
        return null;
    }
}
